﻿<!DOCTYPE html>
<html>
<head>
    <title>top.html</title>
    <script src="../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $.ajax({
                url: 'frm.ashx?type=getUserInfo',
                type: 'post',
                data: '',
                dataType: 'json',
                success: function (r) {
                    $('#spanWBID').html(r[0].WBID);
                    $('#spanUser').html(r[0].strRealName);
                }, error: function (r) {

                }
            });

            UpdateUserOperate();
        });
        function BackUpDB() {
            $.ajax({
                url: 'frm.ashx?type=BackUpDB',
                type: 'post',
                data: '',
                dataType: 'text',
                success: function (r) {
                    alert("备份数据库成功!");
                }, error: function (r) {
                    alert("备份数据库失败!");
                }
            });
        }

        //更新用户操作记录
        function UpdateUserOperate() {
            $.ajax({
                url: '/Ashx/user.ashx?type=UpdateUserOperate',
                type: 'post',
                data: '',
                dataType: 'text',
                success: function (r) {

                }, error: function (r) {

                }
            });

            // setInterval(UpdateUserOperate, 60000);//每60s更新用户操作记录一次

        }
    </script>
    <style type="text/css">
        *
        {
            padding: auto;
            margin: auto;
        }
        .pagehead
        {
            padding:5px 0px;
            margin-bottom:-20px;
            width: 100%;
            height: 45px;
            background: #0a408a;
            box-shadow: inset 0 0 10px #2f4f4f;
        }
        .pagehead_title
        {
            font-family: Arial;
            font-size: 30pt;
            font-weight: bold;
            overflow: hidden;
            color: #f8c301;
           
        }
        .pagehead ul
        {
            float: right;
            list-style: none;
        }
        .pagehead ul li
        {
            text-decoration: none;
            float: left;
            overflow: hidden;
            width: 60px;
            text-align: center;
        }
        .pagehead ul li a
        {
            /* 必须是相对定位  */
            position: relative;
            display: block;
            width: 50px;
            height: 25px;
            padding-top: 5px;
            text-align: center;
            font-family: Arial;
            font-size: 14px;
            font-weight: bold;
            letter-spacing: 1px;
            text-transform: uppercase;
            text-decoration: none;
            cursor: pointer;
            color: #111;
            background-color: #7d9ec0;
            border-radius: 5px;
        }
        .pagehead ul li a:hover
        {
            background-color: #99bbff;
            color: #efefef;
        }
        .pagehead ul li a:hover:active
        {
            background-color: #aaa;
        }
    </style>
</head>
<body  scoll=no>
    <div class="pagehead">
        <table style="width: 100%">
            <tr>
                <td style="text-align: left; padding-left:20px; width: 25%;">
                   
                    <table style="float: left; margin-top: -10px; font-size: 14px; color: #efefef;">
                    <tr><td> <span>网点:</span><span  id="spanWBID"></span></td></tr>
                    <tr><td><span>用户:</span><span id="spanUser"></span></td></tr>
                    </table>
                </td>
                <td style="text-align: center; width: 50%;">
                    <div style="margin-top: -10px;">
                         <span class="pagehead_title">河南舆兴粮食银行</span>
                    </div>
                </td>
                <td style="text-align: center; width: 25%;">
                    <div style="float: right; margin-top: -10px;">
                        <ul>
                            <li class="nav1"><a href="user_main.aspx" target="user_main">主页</a> </li>
                            <li class="nav6"><a href="../default.aspx?Type=loginOut" target="_parent">退出</a></li>
                        </ul>
                    </div>
                </td>
            </tr>
        </table>
    </div>
</body>
</html>
